package com.jodinfo.outmirror.util;

import java.util.List;

import com.alibaba.fastjson.JSONObject;

public class PageResult {
	
	  protected Long count;
	  protected List result;
	 public PageResult(List result, Long count)
	    {
	        this.result = result;
	        this.count = count;
	    }

	    public Long getCount()
	    {
	        return count;
	    }

	    public List getResult()
	    {
	        return result;
	    }

	    public String toString()
	    {
	        JSONObject json = new JSONObject();
	        json.put("total", count);
	        json.put("data", result);
	        return json.toString();
	    }

}
